{include file="index/head" /}
<div class="box">
	<form method="post" action="{:url('add')}" class="sycmsform">
		<div class="box-head">
			<ul class="bhtab">
				<li class="on"><a href="javascript:void(0);"><i class="icon-comment"></i> 基本信息</a></li>
			</ul>
			<div class="fr">
				<button type="submit" class="btn"><i class="icon-check"></i>{$v.id?'编辑':'添加'}</button>
				&nbsp;<a href="javascript:history.go(-1);" class="btn fr"><i class="icon-mail-reply (alias)"></i>返回</a></div>
		</div>
		<div class="form">
			<input type="hidden" name="id" value="{$v.id}" />
			<ul class="tabcon" style="display:block;">
				<li>
					<label>优惠券名称：</label>
					<div class="item">
						<input type="text" name="title" value="{$v.title}" class="input w60" datatype="*" nullmsg="请输入优惠券名称" />
					</div>
				</li>
				<li>
					<label>优惠券类型：</label>
					<div class="item">
						<input type="text" name="type" readonly="readonly" value="抵扣券" datatype="*" class="input w60" />
					</div>
				</li>
				<li>
					<label>优惠券金额：</label>
					<div class="item">
						<input type="number" class="input" name="price" value="{$v.price}" datatype="*" placeholder="请输入抵扣金额" />
					</div>
				</li>
				<li>
					<label>优惠券数量：</label>
					<div class="item">
						<input type="number" class="input" name="num" value="{$v.num}" datatype="*" placeholder="请输入优惠券数量" />
					</div>
				</li>
				<li>
					<label>优惠券有效期(天)：</label>
					<div class="item">
						<input type="number" class="input" name="day" value="{$v.day}" datatype="*" placeholder="请输入优惠券有效期(天)" />
					</div>
				</li>
				<li>
					<label>优惠券状态：</label>
					<div class="item">
						<input type="hidden" value="{$v.status|default=0}" name="status" />
						<div class="switch {if condition='$v.status == 1'}on{/if}" id="closeweb"><em ontxt="开启" offtxt="关闭">{if
								condition='$v.status==1'}开启{else/}关闭{/if}</em><i></i></div>
					</div>
				</li>
				<li>
					<label>&nbsp;</label>
					<div class="item">
						<button type="submit" class="button"><i class="icon-check"></i>{$v.id?'编辑':'添加'}</button>
					</div>
				</li>
			</ul>
	</form>
</div>
</div>
<script>
	sycms.submitform("{:url('index')}");	
</script>
